#ifndef MSGPARSER_H_
#define MSGPARSER_H_

#include <string>
using namespace std;

/**
 * Parses messages sent in order to apply subscription to sensors
 */
class MsgParser {

public:

    /**
     * Extracts tokens from given string according to
     * the specified delimiter.
     * Extracted tokens are stored in given array.
     * @param inputString string to extract the tokens from
     * @param delimiter delimiter separating between tokens
     * @param tokensCount number of tokens to search in inputString
     * @param tokens array holding tokens found (output parameter)
     */
	static void extractTokens(const string inputString, const string delimiter,
			const int tokensCount, string* tokens);
};

#endif
